//
//  AppCongifure.h
//  CedarFinancePH
//
//  Created by 门超 on 2018/9/2.
//  Copyright © 2018年 cedarhd. All rights reserved.
//

#import <Foundation/Foundation.h>


#define     kGesturePasswordTimeKey  @"GesturePasswordTimeKey"//手势密码时间
#define     kGesturePasswordTipsKey  @"GesturePasswordTipsKey"//手势密码提示
#define     kGesturePasswordTipsTwoKey  @"GesturePasswordTipsTwoKey"// 我的 手势密码提示
#define     kGesturePasswordError  @"GesturePasswordError" //手势密码验证错误 3次

#define     kzhuceGesturePasswordTipsKey  @"zhuceGesturePasswordTipsKey"//注册登录手势密码提示

#define     kcheckAuthBindCardKey  @"checkAuthBindCardKey"//身份认证

#define     kUploadPictureKey  @"uploadPictureKey"//上传头像

#define     kShowOrganSettingKey  @"showOrganSettingKey"//机构注册

static NSString * const kAchievementPreviewKey = @"AchievementPreviewKey";




@interface AppCongifure : NSObject
//
//@property (nonatomic,copy) NSString *appLoginToken;
//@property (nonatomic,copy) NSString *appVersion;
//@property (nonatomic,copy) NSString *appUpdateTime;
//@property (nonatomic,assign) BOOL isSyncUserData;//是否同步过了用户数据
//

+ (instancetype)shareInstance;


@property (nonatomic,copy) NSString *deviceToken;

@property (nonatomic,copy) NSString *deviceTokenFromCache;


//@property (nonatomic,copy) NSString *loginMobile;//登录手机号,用来上传设备信息使用


- (void)saveAppLoginToken:(NSString *)appLoginToken;
- (NSString *)appLoginToken;

- (void)saveAppVersion:(NSString *)appVersion;
- (NSString *)appVersion;

- (void)saveAppUpdateTime:(NSString *)appUpdateTime;
- (NSString *)appUpdateTime;

- (void)saveIsSyncUserData:(BOOL)isSyncUserData;
- (BOOL)isSyncUserData;

- (BOOL)isAppFirstRunning;
- (void)setAppFirstRunning:(BOOL)isFirst;

- (void)setHomeActivityId:(NSString *)homeActivityId;
- (NSString *)homeActivityId;

//免责声明是否显示
- (void)setDisclaimerTips:(BOOL)set;
- (BOOL)isShowDisclaimerTips;



+ (void)saveData:(NSString *)data key:(NSString *)key;
+ (NSString *)dataByKey:(NSString *)key;

- (void)saveAchievementPreview;
- (BOOL)isShowAchievementPreview;



@end
